package com.es.www.annotation.service;

import org.springframework.stereotype.Component;

/**
 * @Created by michangtao
 * @Date 2022/2/7 17:04
 * @Description
 */
@Component
public class FinanceService {

    public void addMoney(Double num){
        System.out.println("添加了" + num + "元");
    }

    public Double find(String name){
        double rNum = Math.random();
        System.out.println("根据名称：" + name + "查询到金额：" + rNum);
        return rNum;
    }
}
